package com.peter.design.pattern.decorator.battercake.v2;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/27 15:58
 * @Description:
 */
public class BattercakeDecorator extends Battercake {

    private Battercake battercake;

    public BattercakeDecorator(Battercake battercake) {
        this.battercake = battercake;
    }

    @Override
    protected String getMsg() {
        return this.battercake.getMsg();
    }

    @Override
    protected int getPrice() {
        return this.battercake.getPrice();
    }
}
